import {createApp} from 'vue'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import './assets/common.less'
import {createPinia} from "pinia";
import router from "./router/index.js";
import './assets/icon/iconfont.css';
import App from './App.vue'

import tray from "./components/Tray.js";

const app = createApp(App)
const pinia = createPinia();

if(import.meta.env === 'client') {
    // 初始化系统托盘
    tray();
}

app.use(ElementPlus);
app.use(pinia);
app.use(router);
app.mount('#app')

